package br.com.assemble.hermeserp.model.pojos.enderecamento;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;
import br.com.assemble.hermeserp.model.BasePojo;


/**
 * The persistent class for the CEPS database table.
 * 
 */
@Entity
@Table(name="CEPS")
@DaoClass(value="CepDao", pu="hermes-pu")
public class Cep extends BasePojo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="CEP_IDENTIFY", unique=true, nullable=false)
	private BigInteger cepIdentify;

	@Column(name="CEP_CEP", nullable=false)
	private Integer cepCep;

	//bi-directional many-to-one association to Enderecamento
	@OneToMany(mappedBy="cep")
	private List<Enderecamento> enderecamentoCollection;

    public Cep() {
    }

	public BigInteger getCepIdentify() {
		return this.cepIdentify;
	}

	public void setCepIdentify(BigInteger cepIdentify) {
		this.cepIdentify = cepIdentify;
	}

	public Integer getCepCep() {
		return this.cepCep;
	}

	public void setCepCep(Integer cepCep) {
		this.cepCep = cepCep;
	}

	public List<Enderecamento> getEnderecamentoCollection() {
		return this.enderecamentoCollection;
	}

	public void setEnderecamentoCollection(List<Enderecamento> enderecamentoCollection) {
		this.enderecamentoCollection = enderecamentoCollection;
	}
	
}